﻿#ifndef LOG_H
#define LOG_H

#include <QString>
class QTextStream;
class QFile;
class Log
{
public:
    Log();
    static void Debug(const QString & value);
    static void Error(const QString & value);
    static void Warning(const QString & value);

private:
    ~Log();
    void WriteLog(int type,const QString & value);
    QString getType(int type);
    QFile *file;
    QTextStream* textStream=nullptr;
    QString applicationPath;
    static Log* instance;
};

#endif // LOG_H
